<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- 代理说明页面 -->
<section data-v-c2f0218a="" class="main-content agentExplain view">
  	<div class="div-link" style="display: block;margin-bottom: 30px;line-height: 48px;">
		<span class="tuig-link">推广链接：</span>
		<input class="form-control" style='width:790px;float:left;' value="" id="icode" readonly="readonly">
		 <button class="btn btn-default copy" data-clipboard-action="copy" data-clipboard-target="#icode" id="copy_btn" onclick="copyContent();">复制</button>
		 
	</div>	
	<div class='explainContent'>
		
	</div>
</section>
<script type="text/javascript">
$.ajax({
	type: 'post',
	url: '/title.do',
	success: function(data) {
		console.log(data.data.fanshuiContent)
		$(".explainContent").html(data.data.fanshuiContent)
	}
})

function getIcode() {
	$.ajax({
		url: "/u/yqm.do",
		success: function(data) {
			$("#icode").val(data.message);
			$(this).remove();
		},
		complete: function(xhr) {
			if(xhr.status == 1314520 || xhr.status == '0') {
				save.push("sy")
				bindSetData("login")
			}
		}
	});
}

$(".div-link")[0].style.display = "block";
$(".tips")[0].style.display = "none";
getIcode();

function copyContent() {
	bindLayerLittle('提示', '复制成功')
	var clipboard = new ClipboardJS('#copy_btn');
	clipboard.on('success', function(e) {
		e.clearSelection();
	})
};	
</script>
